//
//  SuperBarVC.m
//  YZZX
//
//  Created by Easaa on 15/3/20.
//  Copyright (c) 2015年 Easaa. All rights reserved.
//

#import "SuperBarVC.h"

@interface SuperBarVC ()

@end

@implementation SuperBarVC
{
    UIView *MenuView;


}


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    
        
    
   
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    if (Dev_IOSVersion >= 7.0) {
        self.edgesForExtendedLayout = UIRectEdgeNone;
    }
    
   
    // Do any additional setup after loading the view.
}

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    //self.view.backgroundColor = [UIColor whiteColor];
    
   // [self NavController];
  }


//设置导航栏
//-(void)NavController
//{
//
//
//    //隐藏导航栏
//    self.navigationController.navigationBarHidden=YES;
//  
//    
//    //底层NavigationView
//    self.NavigationView  = [[UIView  alloc]init];
//    self.NavigationView.frame = CGRectMake(0, 0, Dev_ScreenWidth, 64);
//    self.NavigationView.backgroundColor = RGBCOLOR(252, 115, 148);
//    [self.view addSubview:self.NavigationView];
//    
//    
//    
//    //标题
//    self.NavLableTitle = [[UILabel alloc]initWithFrame:CGRectMake(Dev_ScreenWidth/2-100/2, 64-44, 100, 44)];
//    //self.NavLableTitle.backgroundColor = [UIColor redColor];
//    self.NavLableTitle.textColor = [UIColor whiteColor];
//    self.NavLableTitle.textAlignment = NSTextAlignmentCenter;
//    [self.NavigationView addSubview:self.NavLableTitle];
//    self.NavLableTitle.text = self.title;
//    
//    //返回按钮改为 切换菜单按钮
//    
//    //返回按钮
//    self.Menu = [UIButton buttonWithType:UIButtonTypeCustom];
//    self.Menu.frame = CGRectMake(0, 64-44, 50, 44);
//    [self.Menu setImage:[UIImage imageNamed:@"top_navgation_back@2x"] forState:UIControlStateNormal];
//    [self.Menu setImage:[UIImage imageNamed:@"top_navgation_back@2x"] forState:UIControlStateHighlighted];
//    
//   // [self.Menu addTarget:self action:@selector(Menuseletor:) forControlEvents:UIControlEventTouchUpInside];
//    [self.NavigationView addSubview:self.Menu];
//
//    
//    
//    
//    
//  
//    
//    
//    //右边导航按钮
//    self.NavBut = [UIButton buttonWithType:UIButtonTypeCustom];
//    self.NavBut.frame = CGRectMake(Dev_ScreenWidth-100, 64-44, 50, 44);
//    [self.NavBut setImage:[UIImage imageNamed:@"top_navgation@2x"] forState:UIControlStateNormal];
//    [self.NavBut setImage:[UIImage imageNamed:@"top_navgation@2x"] forState:UIControlStateHighlighted];
//    //[self.NavBut setBackgroundColor:[UIColor greenColor]];
//    
//    [self.NavBut addTarget:self action:@selector(NavButseletor) forControlEvents:UIControlEventTouchUpInside];
//    [self.NavigationView addSubview:self.NavBut];
//    
//    
//    
//    
//    //右边菜单按钮
//    
//    self.NavButMenu = [UIButton buttonWithType:UIButtonTypeCustom];
//    self.NavButMenu.frame = CGRectMake(Dev_ScreenWidth-50, 64-44, 50, 44);
//   [self.NavButMenu setImage:[UIImage imageNamed:@"top_more@2x"] forState:UIControlStateNormal];
//   [self.NavButMenu setImage:[UIImage imageNamed:@"top_more@2x"] forState:UIControlStateHighlighted];
//    
//    //[self.NavButMenu setBackgroundColor:[UIColor redColor]];
//    [self.NavButMenu addTarget:self action:@selector(ButMenuBseletor) forControlEvents:UIControlEventTouchUpInside];
//    [self.NavigationView addSubview:self.NavButMenu];
//    
//    
//    MenuView = [[UIView alloc]initWithFrame:CGRectMake(0, 64, 100, 150)];
//    MenuView.backgroundColor = [UIColor grayColor];
//    [self.view addSubview:MenuView];
//    MenuView.hidden = YES;

//}
//
//- (void)NavButseletor
//{
//    
//   // [self.navigationController pushViewController:<#(UIViewController *)#> animated:<#(BOOL)#>]
//
//
//
//
//}
//
//- (void)ButMenuBseletor
//{
//    
//    
//    
//    
//    
//}

//菜单栏目

//-(void)Menuseletor: (UIButton *)but
//{
//    
//    if (MenuView.hidden==YES)
//    {
//        MenuView.hidden=NO;
//        
//    }
//    else if(MenuView.hidden==NO)
//    {
//        MenuView.hidden=YES;
//    
//    }
//  
//   
//}



@end
